package com.xyyhome.blogsimple.controller;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.xyyhome.blogsimple.domain.BlogDo;
import com.xyyhome.blogsimple.mapper.TestMapper;
import org.apache.ibatis.session.RowBounds;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * 入口controller
 */
@Controller
@RequestMapping
public class IndexController {
    private static final Logger logger = LoggerFactory.getLogger(IndexController.class);

    @Autowired
    private TestMapper testMapper;

    /**
     * 入口
     */
    @RequestMapping()
    public String index() {

        //List<BlogDo> blogDos = testMapper.selectPage(new RowBounds(0, 10), new EntityWrapper<BlogDo>());
        return "index";
    }

}
